import request from '@/utils/request'

export function findOrders() {
  return request({
  baseURL: 'http://localhost:8886',
    url:  '/order/findCountOrder',
    method: 'get'
  })
}

export function findFree() {
  return request({
 baseURL: 'http://localhost:8886',
    url:  '/order/free',
    method: 'get'
  })
}

export function findCountSum() {
  return request({
    baseURL: 'http://localhost:8886',
    url:  '/order/findCountSum',
    method: 'get'
  })
}


export function findType(query) {
  return request({
    baseURL: 'http://localhost:8886',
    url:  '/order/findType',
    method: 'get',
     params: query
  })
}

export function searchOrder(searchname) {
  return request({
    baseURL: 'http://localhost:8886',
    url:  '/order/search',
    method: 'get',
    params: { searchname }
  })
}


export function findDetail(query) {
  return request({
    baseURL: 'http://localhost:8886',
    url:  '/order/detail',
    method: 'get',
    params: query
  })
}


export function delOrder(query) {
  return request({
    baseURL: 'http://localhost:8886',
    url:  '/order/delOrder',
    method: 'get',
    params: query
  })
}


